/**
 * 
 */
package dms.dto;

import java.text.ParseException;
import java.util.Date;

import org.apache.struts.action.ActionForm;

import dms.model.Dormitory;
import dms.model.form.ProcessStatus;
import dms.util.DateFormatUtil;

/**
 * @author 李健
 *
 */
public class PurchaseItemDTO extends ActionForm {
	private Long id;
	private Long dormitory;
	private String contactTel;
	private String description;
	private String requestDate;
	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * @return the dormitory
	 */
	public Long getDormitory() {
		return dormitory;
	}
	/**
	 * @param dormitory the dormitory to set
	 */
	public void setDormitory(Long dormitory) {
		this.dormitory = dormitory;
	}
	/**
	 * @return the contactTel
	 */
	public String getContactTel() {
		return contactTel;
	}
	/**
	 * @param contactTel the contactTel to set
	 */
	public void setContactTel(String contactTel) {
		this.contactTel = contactTel;
	}
	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}
	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}
	/**
	 * @return the requestDate
	 */
	public Date getRequestDate() {
		try {
			return DateFormatUtil.parseDate(requestDate);
		} catch (ParseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return null;
	}
	/**
	 * @param requestDate the requestDate to set
	 */
	public void setRequestDate(String requestDate) {
		this.requestDate = requestDate;
	}
	
	
}
